package com.css.project.oa.cash.mapper;

import com.css.project.oa.cash.domain.ProCash;
import com.css.project.oa.cash.domain.ProCashItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProCashMapper {

    public List<ProCash> getCashList(ProCash proCash);

    public ProCash getPrintCashInfo(@Param(value = "id")Long id);

    ProCash selectProCashById(@Param(value = "id")Long id);

    /**
     * 报销明细
     * @param cashId
     * @return
     */
    public List<ProCashItem> getProCashItemList(@Param(value = "cashId")Long cashId);

    /**
     * 现金报销列表
     * @param cashId
     * @return
     */
    public List<ProCashItem> getProCashItemMainList(@Param(value = "cashId")Long cashId);

    public int insertProCash(ProCash proCash);

    public int updateProCash(ProCash proCash);

    public int deleteCash(Long[] cashId);

    /**
        * @Author 陈泽恩
        * @Description  根据id获取报销单
        * @Date 16:40 20-05-12,0012
        * @Param [cashId]
        * @return com.css.project.oa.cash.domain.ProCash
    **/
    public ProCash getCashById(Long cashId);

}
